﻿package Message.Public
{
    import Framework.MQ.*;
    import Framework.Serialize.*;

    public class SUniqueBossMsg extends IMessageBase
    {
        public var isDead:Boolean;
        public var isOpen:Boolean;
        public var isEnd:Boolean;
        public var nextSeconds:int;
        public var successPlayer:int;
        public const _type:int = 250;
        public static var _regist:SUniqueBossMsg = new SUniqueBossMsg(true);

        public function SUniqueBossMsg(param1:Boolean = false)
        {
            if (param1)
            {
                MessageManager.instance().regist(this);
            }
            return;
        }// end function

        override public function getType() : int
        {
            return this._type;
        }// end function

        override public function clone() : IMessageBase
        {
            return new SUniqueBossMsg();
        }// end function

        override public function __write(param1:SerializeStream) : void
        {
            param1.writeBool(this.isDead);
            param1.writeBool(this.isOpen);
            param1.writeBool(this.isEnd);
            param1.writeInt(this.nextSeconds);
            param1.writeInt(this.successPlayer);
            return;
        }// end function

        override public function __read(param1:SerializeStream) : void
        {
            this.isDead = param1.readBool();
            this.isOpen = param1.readBool();
            this.isEnd = param1.readBool();
            this.nextSeconds = param1.readInt();
            this.successPlayer = param1.readInt();
            return;
        }// end function

    }
}
